.class Lcom/waiqin365/base/login/av;
.super Ljava/util/TimerTask;


# instance fields
.field final synthetic a:Lcom/waiqin365/base/login/LoginMainActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/base/login/LoginMainActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/base/login/av;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    invoke-direct {p0}, Ljava/util/TimerTask;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 6

    iget-object v0, p0, Lcom/waiqin365/base/login/av;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    invoke-static {v0}, Lcom/waiqin365/base/login/d/g;->a(Landroid/content/Context;)Ljava/util/HashMap;

    move-result-object v0

    new-instance v1, Lorg/json/JSONArray;

    invoke-direct {v1}, Lorg/json/JSONArray;-><init>()V

    :try_start_0
    invoke-virtual {v0}, Ljava/util/HashMap;->entrySet()Ljava/util/Set;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    new-instance v3, Lorg/json/JSONObject;

    invoke-direct {v3}, Lorg/json/JSONObject;-><init>()V

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/Map$Entry;

    invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/login/c/o;

    const-string/jumbo v4, "name"

    iget-object v5, v0, Lcom/waiqin365/base/login/c/o;->a:Ljava/lang/String;

    invoke-virtual {v3, v4, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string/jumbo v4, "version"

    iget-object v5, v0, Lcom/waiqin365/base/login/c/o;->c:Ljava/lang/String;

    invoke-virtual {v3, v4, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string/jumbo v4, "package"

    iget-object v0, v0, Lcom/waiqin365/base/login/c/o;->b:Ljava/lang/String;

    invoke-virtual {v3, v4, v0}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    invoke-virtual {v1, v3}, Lorg/json/JSONArray;->put(Ljava/lang/Object;)Lorg/json/JSONArray;
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    :cond_0
    invoke-virtual {v1}, Lorg/json/JSONArray;->toString()Ljava/lang/String;

    move-result-object v0

    :try_start_1
    new-instance v1, Lcom/waiqin365/base/login/d/o;

    invoke-direct {v1}, Lcom/waiqin365/base/login/d/o;-><init>()V

    invoke-virtual {v1, v0}, Lcom/waiqin365/base/login/d/o;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    new-instance v1, Lcom/waiqin365/base/login/b/a/v;

    invoke-direct {v1, v0}, Lcom/waiqin365/base/login/b/a/v;-><init>(Ljava/lang/String;)V

    new-instance v0, Lcom/waiqin365/base/login/b/c;

    iget-object v2, p0, Lcom/waiqin365/base/login/av;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    # getter for: Lcom/waiqin365/base/login/LoginMainActivity;->handler:Landroid/os/Handler;
    invoke-static {v2}, Lcom/waiqin365/base/login/LoginMainActivity;->access$2000(Lcom/waiqin365/base/login/LoginMainActivity;)Landroid/os/Handler;

    move-result-object v2

    invoke-direct {v0, v2, v1}, Lcom/waiqin365/base/login/b/c;-><init>(Landroid/os/Handler;Lcom/waiqin365/base/login/b/d;)V

    invoke-virtual {v0}, Lcom/waiqin365/base/login/b/c;->start()V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    :goto_1
    iget-object v0, p0, Lcom/waiqin365/base/login/av;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    # invokes: Lcom/waiqin365/base/login/LoginMainActivity;->sendExtParamRequest()V
    invoke-static {v0}, Lcom/waiqin365/base/login/LoginMainActivity;->access$2600(Lcom/waiqin365/base/login/LoginMainActivity;)V

    return-void

    :catch_1
    move-exception v0

    goto :goto_1
.end method
